<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BrokenIRC: server_src/server_decls.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BrokenIRC
   &#160;<span id="projectnumber">0.0.42</span>
   </div>
   <div id="projectbrief">A &#39;not so functionnal&#39; irc server and a WIP client</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_20e5c1c74b8b955148e6b35ac4a0bc4d.html">server_src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">server_decls.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="server__decls_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** EPITECH PROJECT, 2018</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">** MY_IRC</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** File description:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** my_irc server global variables</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** for commands settings see methodsXX.c files</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;../include/server.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="server_8h.html#ae19e01ff7678899828036520edec313c">   12</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="server__decls_8c.html#ae19e01ff7678899828036520edec313c">G_PROTOS</a>[<a class="code" href="server_8h.html#a9880cfe1f4eb3140da2095fd081282f5">REF_NB</a>] = {</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        <span class="stringliteral">&quot;JOIN&quot;</span>, <span class="stringliteral">&quot;NICK&quot;</span>, <span class="stringliteral">&quot;PING&quot;</span>, <span class="stringliteral">&quot;USER&quot;</span>, <span class="stringliteral">&quot;QUIT&quot;</span>, <span class="stringliteral">&quot;PRIVMSG&quot;</span>,</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        NULL</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;};</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="server_8h.html#a7bb29231b69e3767e187ffe5d5717b28">   18</a></span>&#160;<span class="keyword">const</span> <a class="code" href="server_8h.html#abc9c1e6f561b7500f7ecb3813d272d20">cmds</a> <a class="code" href="server__decls_8c.html#a7bb29231b69e3767e187ffe5d5717b28">G_CMDS</a>[<a class="code" href="server_8h.html#a9880cfe1f4eb3140da2095fd081282f5">REF_NB</a>] = {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <a class="code" href="rfc__cmds0_8c.html#a71367510a3d917e8ed6776a2e288d39d">join</a>, <a class="code" href="rfc__cmds0_8c.html#a7b98d677eef4b5ec4ec05ee7f8740a93">nick</a>, <a class="code" href="rfc__cmds0_8c.html#a09146559e1d3b558645be28d0dd3e7ce">ping</a>, <a class="code" href="rfc__cmds0_8c.html#a46f1f4a4420676e1242357d23dc76141">user</a>, <a class="code" href="rfc__cmds0_8c.html#aab01df5c017adecbb904e1cb95d589f7">quit</a>, <a class="code" href="rfc__cmds1_8c.html#aa5da766def7467ba7a3899fddbfcd278">privmsg</a>,</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        NULL</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;};</div><div class="ttc" id="server__decls_8c_html_a7bb29231b69e3767e187ffe5d5717b28"><div class="ttname"><a href="server__decls_8c.html#a7bb29231b69e3767e187ffe5d5717b28">G_CMDS</a></div><div class="ttdeci">const cmds G_CMDS[REF_NB]</div><div class="ttdef"><b>Definition:</b> <a href="server__decls_8c_source.html#l00018">server_decls.c:18</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a46f1f4a4420676e1242357d23dc76141"><div class="ttname"><a href="rfc__cmds0_8c.html#a46f1f4a4420676e1242357d23dc76141">user</a></div><div class="ttdeci">void * user(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00081">rfc_cmds0.c:81</a></div></div>
<div class="ttc" id="server_8h_html_a9880cfe1f4eb3140da2095fd081282f5"><div class="ttname"><a href="server_8h.html#a9880cfe1f4eb3140da2095fd081282f5">REF_NB</a></div><div class="ttdeci">#define REF_NB</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00022">server.h:22</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a09146559e1d3b558645be28d0dd3e7ce"><div class="ttname"><a href="rfc__cmds0_8c.html#a09146559e1d3b558645be28d0dd3e7ce">ping</a></div><div class="ttdeci">void * ping(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00065">rfc_cmds0.c:65</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a7b98d677eef4b5ec4ec05ee7f8740a93"><div class="ttname"><a href="rfc__cmds0_8c.html#a7b98d677eef4b5ec4ec05ee7f8740a93">nick</a></div><div class="ttdeci">void * nick(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00046">rfc_cmds0.c:46</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_aab01df5c017adecbb904e1cb95d589f7"><div class="ttname"><a href="rfc__cmds0_8c.html#aab01df5c017adecbb904e1cb95d589f7">quit</a></div><div class="ttdeci">void * quit(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00101">rfc_cmds0.c:101</a></div></div>
<div class="ttc" id="rfc__cmds0_8c_html_a71367510a3d917e8ed6776a2e288d39d"><div class="ttname"><a href="rfc__cmds0_8c.html#a71367510a3d917e8ed6776a2e288d39d">join</a></div><div class="ttdeci">void * join(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds0_8c_source.html#l00019">rfc_cmds0.c:19</a></div></div>
<div class="ttc" id="server__decls_8c_html_ae19e01ff7678899828036520edec313c"><div class="ttname"><a href="server__decls_8c.html#ae19e01ff7678899828036520edec313c">G_PROTOS</a></div><div class="ttdeci">const char * G_PROTOS[REF_NB]</div><div class="ttdef"><b>Definition:</b> <a href="server__decls_8c_source.html#l00012">server_decls.c:12</a></div></div>
<div class="ttc" id="server_8h_html_abc9c1e6f561b7500f7ecb3813d272d20"><div class="ttname"><a href="server_8h.html#abc9c1e6f561b7500f7ecb3813d272d20">cmds</a></div><div class="ttdeci">void *(* cmds)(cmdargs args, int clifd, t_channel *chanlist)</div><div class="ttdef"><b>Definition:</b> <a href="server_8h_source.html#l00175">server.h:175</a></div></div>
<div class="ttc" id="rfc__cmds1_8c_html_aa5da766def7467ba7a3899fddbfcd278"><div class="ttname"><a href="rfc__cmds1_8c.html#aa5da766def7467ba7a3899fddbfcd278">privmsg</a></div><div class="ttdeci">void * privmsg(cmdargs args, int clifd, t_channel *chans)</div><div class="ttdef"><b>Definition:</b> <a href="rfc__cmds1_8c_source.html#l00054">rfc_cmds1.c:54</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
